Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt encoder wrong device #18

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

elitap
Copy link

@elitap elitap commented Aug 30, 2023

Fixes #17

Description

monailabel/utils/others/generic.device_map() returns "cuda:x" in case of multiple gpus, accordingly, the compare with device == "cuda" fails in monaivista....inferer.py and monaivista....utils.py. As a result the inputs for the promt encoder are never moved to "gpu"

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).

@elitap elitap changed the title 17 prompt encoder wrond device 17 prompt encoder wrong device Aug 30, 2023
@elitap elitap changed the title 17 prompt encoder wrong device prompt encoder wrong device Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input of promt Encoder on wrong device (CPU)
1 participant